﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Com.Ompchina.Lib.Net;
using Model.Cms;
using BLL.Cms;
using BLL.Config;
namespace Com.Ompchina.Web
{
    public partial class detail : System.Web.UI.Page
    {
        protected NewsInfo _DefaultNews = new NewsInfo();
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = RequestParam.GetInt(Request, "id");
            _DefaultNews = new NewsBLL().GetNewsByID(id);
            if (_DefaultNews.NewsID == 0) 
            {
                Response.Redirect("/");
                Response.End();
            }
            ucMenu.ParentTermID = new TermBLL().GetTermByID(_DefaultNews.NewsType.TermID).ParentTerm.TermID;
        }
    }
}